package service;

import com.google.gson.JsonArray;
import com.google.gson.JsonObject;

import dao.UserDao;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Date;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import po.User;
import utils.UuidUtils;

/**
 * Created by guo on 2018/4/1.
 */
@Component
public class FlushUuid {
  // @Scheduled(fixedRate = 1000)
  //public void test()
  // {
  //   System.out.println(new Date());
  //   System.out.println("hahaha");
  // }
  @Autowired
  private UserDao userDao;
 @Scheduled(fixedRate = 100000)
  public String flashToken() {
   UuidUtils uuidUtils = new UuidUtils();
   String token = uuidUtils.getUuid();
   System.out.println(token);
   return token;
 }

}

